package cn.edu.xmu.wnw.javabean;

import javax.servlet.http.HttpSession;

import cn.edu.xmu.wnw.common.BaseService;
import cn.edu.xmu.wnw.pojo.User;
import cn.edu.xmu.wnw.service.UserManageService;



public class UserService extends BaseService
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private UserManageService um;

	public UserService(HttpSession session)
	{
		super(session);
		um = (UserManageService) springContext.getBean("userManageService");
	}

	public String sayHello(int userID)
	{

		return "hello " + um.getUserName(userID);
	}

	public boolean createUser(User user)
	{
		return um.createUser(user);
	}
}
